<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>hello echarts</title>
		<script type="text/javascript" src="js/echarts.min.js" ></script>
	</head>
	<body>
	<!-- 为 echarts 准备一个具备宽高的div，用于echarts图表在html中展示 -->
    <div id="main" style="width: 600px;height:400px;"></div>
	<script type="text/javascript">
        // 基于准备好的dom，初始化echarts实例
        var myChart = echarts.init(document.getElementById('main'));
        // 指定图表的配置项和数据
        var option = {
            title: {
                text: '新能源车辆品牌销量'
            },
            tooltip: {},
            legend: {
                data:['销量']
            },
            xAxis: {
                data: ["比亚迪","蔚来","恒驰","特斯拉","小鹏","北汽"]
            },
            yAxis: {},
            series: [{
                name: '销量',
                type: 'bar',
                data: [139999, 39999, 3999, 333999, 38998, 18998]
            }]
        };
        // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);
		// console.log(echarts.version)
	</script>

	</body>
</html>